package com.atguigu._36observer.my;

public class ObserverOctal extends Observer {

    public ObserverOctal(Subject subject) {
        this.subject = subject;
        this.subject.attach(this);
    }

    @Override
    public void update() {
        System.out.println("Octal String: "
                + Integer.toOctalString(subject.getState()));
    }
}